<div class="epc-menu">
  <div class="epc-menu-title">
    <div [ngClass]="{active:dataSource === 'OWNER'}" (click)="switchMenuModel('OWNER')">标准清单</div>
    <div [ngClass]="{active:dataSource === 'EPC'}" (click)="switchMenuModel('EPC')">原始目录</div>
  </div>
  <div class="epc-menu-content">
    <standard-tree-menu [nodes]="data" *ngIf="dataSource === 'OWNER'" [isLoading]="isLoading" (selected)="onSelect($event)"></standard-tree-menu>
    <epc-tree-menu [nodes]="data" *ngIf="dataSource === 'EPC'" [isLoading]="isLoading" (selected)="onSelect($event)"></epc-tree-menu>
    <span *ngIf="dataSource === null">暂无数据</span>
  </div>
</div>
